package cn.mobieteam.add.ui.activity;

import android.view.View;
import android.widget.TextView;
import cn.mobieteam.add.BaseActivity;
import cn.mobieteam.add.R;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.util.LogUtils;
import com.lidroid.xutils.view.annotation.ContentView;
import com.lidroid.xutils.view.annotation.ViewInject;

/**
 * 应用主界面
 * 
 * @author Administrator
 *
 */
@ContentView(R.layout.activity_main)
public class MainActivity extends BaseActivity {
	@ViewInject(R.id.tv)
	TextView tv;

	@Override
	public void init() {
		LogUtils.customTagPrefix = "MainActivity";// 方便调试时过滤 adb logcat 输出
		LogUtils.allowI = true; // adb log 的输出开关
		ViewUtils.inject(this);
		tv.setOnClickListener(this);
	}

	@Override
	public void widgetClick(View v) {
		switch (v.getId()) {
		case R.id.tv:
			tv.setText("test");
			LogUtils.i("adb log");
			break;

		default:
			break;
		}
	}
}
